local skel = fk.CreateSkill {
  name = "rmt__renxie",
}

Fk:loadTranslationTable{
  ["rmt__renxie"] = "衽血",
  [":rmt__renxie"] = "出牌阶段，你可以将手牌数摸至X（X你为上次发动〖袖雠〗弃置牌数），若本回合没有角色死亡，你失去1点体力。",

  ["#rmt__renxie-draw"] = "衽血：将手牌摸至%arg",

  ["$rmt__renxie1"] = "顺道而动，天下为向；因民而虑，天下为斗！",
  ["$rmt__renxie2"] = "壮士除贼，不得不尔，吾等岂乐杀人？",
}

skel:addEffect("active", {
  anim_type = "drawcard",
  card_num = 0,
  target_num = 0,
  prompt = function (self, player)
    return "#rmt__renxie-draw:::"..player:getMark("rmt__xiuchou")
  end,
  can_use = function(self, player)
    return player:getHandcardNum() < player:getMark("rmt__xiuchou")
  end,
  card_filter = Util.FalseFunc,
  on_use = function(self, room, effect)
    local player = effect.from
    player:drawCards(player:getMark("rmt__xiuchou") - player:getHandcardNum(), skel.name)
    if player.dead then return end
    if #player.room.logic:getEventsOfScope(GameEvent.Death, 1, function (e)
      return true
    end, Player.HistoryTurn) == 0 then
      room:loseHp(player, 1, skel.name)
    end
  end,
})

return skel
